#ifndef CLIENT_H
#define CLIENT_H

#include <string>
#include <cstring>

class TcpClient {
public:
    TcpClient(const char* ip, unsigned short port) : _socket(-1), _port(port), _serverIP(ip) {}
    ~TcpClient() {}

    bool init();

    bool sendMessage(const std::string &message);

    void sendingMultiSmallMsg();

    void sendingOneBigMsg();

    void sendingMix();

    void close();

private:
    int                 _socket;
    unsigned short      _port;
    std::string         _serverIP;
};

#endif